package com.chu.service;

import com.chu.entity.Employee;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface EmployeeService {

    //根据导出的id查询需要序列化的对象
    List<Employee> findAllByIds(int[] id);

    //根据账号查询用户做登录
    Employee loginByLoginName(String loginName,String loginPassword);

    //根据账号查询用户
    Employee findByLoginName(String loginName);

    //查询全部
    PageInfo<Employee> findAll(int pageIndex, int pageSize, String username, String rolename, String deptname);

    //批量假删除
    int deleteBatch(int[] params);

    int deleteByPrimaryKey(Integer id,int state);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
}